package com.dk.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.Date;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author author
 * @since 2021-11-02
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_repayment")
@ApiModel(value="TRepayment对象", description="")
public class TRepayment implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "分期表id")
    private String stagingId;

    @ApiModelProperty(value = "用户id")
    private String adminId;

    @ApiModelProperty(value = "车id")
    private String carId;

    @ApiModelProperty(value = "应还款期数(贷款几期,还多少月)")
    private Integer manyMonth;

    @ApiModelProperty(value = "1为已还,2为未还,3为未还清")
    private String status;

    @ApiModelProperty(value = "还款开始时间")
    private Date startingTime;

    @ApiModelProperty(value = "还款结束时间")
    private Date endTime;

    @TableLogic
    @ApiModelProperty(value = "逻辑删除")
    private Integer deleted;

    @ApiModelProperty(value = "版本")
    private Integer version;

    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty(value = "更新时间")
    private Date updateTime;


}
